API Documentation
SamplerManager.h
1 // SamplerManager.h
3 //
5 
6 namespace nkGraphics
7 {
13  class SamplerManager final : public nkCommon::SingletonClass<SamplerManager>
14  {
15  public :
16 
21 
22  // Memory management
36  Sampler* get (const nkMemory::StringView& name) ;
45  Sampler* getByIndex (unsigned int id) ;
52  void rename (const nkMemory::StringView& oldName, const nkMemory::StringView& newName) ;
58  void erase (const nkMemory::StringView& name) ;
59  } ;
60 }
nkGraphics::SamplerManager
Manages the samplers available in the component.
Definition: SamplerManager.h:14
nkGraphics::SamplerManager::rename
void rename(const nkMemory::StringView &oldName, const nkMemory::StringView &newName)
nkGraphics::SamplerManager::get
Sampler * get(const nkMemory::StringView &name)
nkGraphics::SamplerManager::erase
void erase(const nkMemory::StringView &name)
nkGraphics::SamplerManager::~SamplerManager
~SamplerManager()
nkGraphics::SamplerManager::createOrRetrieve
Sampler * createOrRetrieve(const nkMemory::StringView &name)
nkMemory::StringView
Class holding information about a string, with no ownership over the data.
Definition: StringView.h:22
nkGraphics::Sampler
Holds all the information needed of a sampler used during rendering.
Definition: Sampler.h:12
nkGraphics::SamplerManager::getByIndex
Sampler * getByIndex(unsigned int id)
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7